import { z } from 'zod';
import { baseProcedure, createTRPCRouter,protectedProcedure } from '../init';
import { TRPCError } from '@trpc/server';
import { auth } from '@clerk/nextjs/server';
import { categoriesRouter } from '@/modules/categories/server/procedures';
import { studioRouter } from '@/modules/studio/server/procedures';
import { videosRouter } from '@/modules/videos/server/procedures';

/**
 * @description  应用的router
 * @returns 
 */
export const appRouter = createTRPCRouter({
  categories:categoriesRouter,
  studio: studioRouter,
  videos:videosRouter
});
export type AppRouter = typeof appRouter;